package managedbean.SCM.PackingOrder;

import entity.SCM.PackingOrder;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import session.stateless.SCM.DeliveryOrderBeanLocal;

@ManagedBean (name = "viewPackingOrderManagerBean")
@ViewScoped
public class ViewPackingOrderManagerBean implements Serializable{

    public ViewPackingOrderManagerBean() {
    }
    
    @EJB
    private DeliveryOrderBeanLocal deliveryOrderBeanLocal;
    private PackingOrder selectedPackingOrder;
    private String statusMessage;

    public PackingOrder getSelectedPackingOrder() {
        return selectedPackingOrder;
    }

    public void setSelectedPackingOrder(PackingOrder selectedPackingOrder) {
        this.selectedPackingOrder = selectedPackingOrder;
    }

    public String getStatusMessage() {
        return statusMessage;
    }

    public void setStatusMessage(String statusMessage) {
        this.statusMessage = statusMessage;
    }
    
    public List<PackingOrder> getPackingOrder(){
        return deliveryOrderBeanLocal.getPackingOrder();
    }
}
